package com.test.loop;

public class ForDemo1 {
    public static void main(String[] args) {
        //目标：掌握for循环的书写
        test1();
    }

    public static void test1() {
        for (int i = 0; i < 3; i++) {
            System.out.println("helloworld!");
        }

        for (int i = 0; i < 6; i++) {
            System.out.println(1);
        }

        for (int i = 0; i < 4; i+=2) {
            System.out.println(2);
        }
    }
}
